# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-fire
_pkgname=fire
pkgver=0.7.0
pkgrel=1
pkgdesc='A library for automatically generating command line interfaces.'
arch=('any')
url='https://pypi.org/project/fire/#files'
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f451c19dde5359fc63298ef48f6cc9b2626f6693769d41031232eff024895b0f7f6679adc9ad5c5eb9036fad80b86fd787c2f4aaee4961c109904b8381c94119')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

